package test;

public class User {

//先定义成员变量（私有）
   private String Username;
   private String password;
   private String email;
   private String gender;;
   private int age;
//定义两个构造方法（带参的构造方法和无参的构造方法，快捷键alt+Fn+insert,再select none构造无参，shift全选构造有参）
    public User() {
    }

    public User(String username, String password, String email, String gender, int age) {
        Username = username;
        this.password = password;
        this.email = email;
        this.gender = gender;
        this.age = age;
    }
//快捷键alt+Fn+insert构造set，get方法
    public String getUsername() {
        return Username;
    }

    public void setUsername(String username) {
        Username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
